package com.fdq.dianping.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fdq
 * @since 2025-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dp_shop_comment")
public class ShopComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所评论的商户的id
     */
    private Long shopId;

    /**
     * 评论的人的id
     */
    private Long userId;

    /**
     * 评论内容
     */
    private String comment;

    /**
     * 图片url
     */
    private String images;

    /*
    * 创建时间
    * */
    private LocalDateTime createTime;

    /*
    * 评分
    * */
    private Integer score;
}
